import request from '@/utils/request'

// 获取维修分类
export const getCategoryService = () => request.get('/repair/category')

// 获取维修列表
export const getCategoryListService = () => request.get('/repair/categorylist')

// 根据分类Id获取维修列表
export const getCategoryListServiceforId = (id) =>
  request.get(`/repair/categorylist/${id}`)

// 根据维修id获取维修详细
export const getServiceItemService = (id) => request.get(`/repair/serviceitem/${id}`)

// 获取维修项目列表
export const getServiceClassifyService = (serviceId, classify) =>
  request.get(`/repair/serviceclassify/${serviceId}/${classify}`)

// 获取搜索列表
export const getSearchService = (search) => request.get('/repair/search', { params: { search } })
